package com.bruce.starts.demo.guava.collection;

import com.google.common.base.Joiner;
import com.google.common.collect.HashMultiset;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.HashSet;
import java.util.concurrent.ThreadLocalRandom;

public class MultisetDemo {
    public static void main(String[] args) {
        //当前时间
        //格式化
        DateTimeFormatter fmDate = DateTimeFormatter.ofPattern("yyMMddHHmmss");
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now.format(fmDate));
        ThreadLocalRandom random = ThreadLocalRandom.current();
        HashSet set = new HashSet();
        for(int i=0;i<10000;i++){
            int randomNum = random.nextInt(999999);
            set.add(randomNum);
        }
        System.out.println(set.size());
        String str = "q3";
        System.out.println(ThreadLocalRandom.current().nextInt(9));
    }
}
